﻿using Cemit.Awaiter;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cemit.NetFramework
{
    /// <summary>表示一个异步操作。将await关键字后的代码委托到MonoHandle中执行</summary>
    public class MonoAsyncAction<T> : AsyncAction<T>
    {
        public void ReportResult(T result)
        {
            ReportResult(result, PolyNetwork.MonoHandle.Invoke);
        }
    }
}
